﻿using System;
using System.Collections.Generic;
using System.Text;

using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Data.GPS;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;


namespace SportTracksSwimSetPlugin.Edit
{
    class ExtendActions : IExtendDailyActivityViewActions, IExtendActivityReportsViewActions
    {

        #region IExtendDailyActivityViewActions Members
        public IList<IAction> GetActions(IDailyActivityView view,
                                                 ExtendViewActions.Location location)
        {
            if (location == ExtendViewActions.Location.EditMenu)
            {
                return SwimSetEditActions(view, null);
            }
            else return new IAction[0];
        }
        public IList<IAction> GetActions(IActivityReportsView view,
                                         ExtendViewActions.Location location)
        {
            if (location == ExtendViewActions.Location.EditMenu)
            {
                return SwimSetEditActions(null, view);
            }
            else 
            {
                return new IAction[0];
            }
            
        }
        #endregion

        IList<IAction> SwimSetEditActions(IDailyActivityView aview, IActivityReportsView rview)

        {
            IList<IAction> actions = new List<IAction>();
            actions.Add(new SwimSetAction(aview, rview));

            return actions;
        }

    }
}
